/** 
* Copyright (C) 2012-2017 ZEEI Inc.All Rights Reserved.
* 项目名称：efs
* 文件名称：AlarmCodeController.java
* 包  名  称：com.zeei.efs.controller
* 文件描述：TODO 请修改文件描述
* 创建日期：2017年6月8日下午1:47:43
* 
* 修改历史
* 1.0 chenhuiqiong 2017年6月8日下午1:47:43 创建文件
*
*/


package com.zeei.app.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zeei.app.service.ProductPollInfoService;
import com.zeei.app.vo.GasProductPollInfoVO;
import com.zeei.app.vo.QueryParamVO;
import com.zeei.app.vo.WatProductPollInfoVO;
import com.zeei.common.annotation.SysLog;
import com.zeei.common.controller.BasicController;
import com.zeei.common.enums.LogType;
import com.zeei.common.vo.ResultDataVO;


/**
 * 
* @类型名称：ProductPollInfoController
* @类型描述：废水废气治理设施管理
* @功能描述：废水废气治理设施管理
* @创建作者：chenhuiqiong
*
 */
@Controller
@RequestMapping("/app/productPoll")
public class ProductPollInfoController extends BasicController{
	@Autowired
	private ProductPollInfoService productPollInfoService;
	
	@RequestMapping(value = "/list", method = RequestMethod.POST)
	@ResponseBody
	@SysLog(text = "查询废气废水治理设施", type = LogType.View)
	public ResultDataVO<Map<String,Object>> queryGasWatProductPollInfo(QueryParamVO queryParamVO){
		Map<String,Object> map = new HashMap<String,Object>();
		
		
		GasProductPollInfoVO gasProductPollInfo = new GasProductPollInfoVO();
		gasProductPollInfo.setPsCode(queryParamVO.getPsCode());
		List<GasProductPollInfoVO> gasProductPollList = productPollInfoService.queryGasProductPollInfo(gasProductPollInfo);
		map.put("gasProductPollList", gasProductPollList);
		
		WatProductPollInfoVO watProductPollInfo = new WatProductPollInfoVO();
		watProductPollInfo.setPsCode(queryParamVO.getPsCode());
		List<WatProductPollInfoVO> watProductPollList = productPollInfoService.queryWatProductPollInfo(watProductPollInfo);
		map.put("watProductPollList", watProductPollList);
		
		return createResultDataVO(map, true, "");
	}
}

